package com.suning.sawp.service.impl.job;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.suning.framework.dal.client.DalClient;
import com.suning.sawp.intf.job.MainPushTaskJobService;

@Service("mainPushTaskJobService")
public class MainPushTaskJobServiceImpl implements MainPushTaskJobService {

    @Resource
    DalClient dalClient;
    
    @Override
    public void updateMainPushTaskStatus() {
        Map<String, Object> paramMap = Maps.newHashMap();
        // 更改总部任务状态
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_HQ_TASK_STATUS_BEGIN", paramMap);
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_HQ_TASK_STATUS_END", paramMap);
        // 更改大区任务状态
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_REGION_TASK_STATUS_BEGIN", paramMap);
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_REGION_TASK_STATUS_END", paramMap);
        // 更改门店任务状态
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_STORE_TASK_STATUS_BEGIN", paramMap);
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_STORE_TASK_STATUS_END", paramMap);
        // 更改店员任务状态
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_CLERK_TASK_STATUS_BEGIN", paramMap);
        dalClient.execute("STORE_MAIN_PUSH.UPDATE_CLERK_TASK_STATUS_END", paramMap);
    }

}
